package com.springcloud.client;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
/**
 * 客户端
 *
 */
@EnableEurekaClient
@EnableFeignClients
@SpringBootApplication
@ComponentScan(basePackages = {"org.apache.rocketmq.spring.starter","com.springcloud.client"})
public class ClientApp {
	/**
	 * 打包需继承SpringBootServletInitializer类，复写这个方法即可
	 */  
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(ClientApp.class);
	}


	
	public static void main(String[] args) {
		SpringApplication.run(ClientApp.class, args);
	}

}
